package com.example.knowman.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.sql.Timestamp;

@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("\"ARCHKNOW\".\"knowArchFiles\"")
public class knowArchFiles extends Model<knowArchFiles>{
    private static final long serialVersionUID = 1L;

    @TableField("\"archFilesId\"")
    private Integer archFilesId;

    @TableField("\"knowId\"")
    private Integer knowId;

    @TableField("\"fileName\"")
    private String fileName;

    @TableField("\"fileURL\"")
    private String fileURL;

    @TableField("\"fileSize\"")
    private String fileSize;

    @TableField("\"downloadCount\"")
    private Integer downloadCount;

    @TableField("\"notes\"")
    private String notes;

    @TableField("\"createtime\"")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp createtime;

}
